package com.junchenrobot.mes.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * 设备表
 */
@Getter
@Setter
@ToString
public class Device {
    
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    
    /**
     * 设备名称
     */
    @TableField("device_name")
    private String deviceName;
    
    /**
     * 设备代码
     */
    @TableField("device_code")
    private String deviceCode;
    
    /**
     * 设备电量
     */
    @TableField("device_battery")
    private String deviceBattery;
    
    /**
     * 设备状态
     */
    @TableField("device_status")
    private Integer deviceStatus;
    
    @TableField("device_left_pole")
    private Integer deviceLeftPole;
    
    @TableField("device_right_pole")
    private Integer deviceRightPole;
    
    /**
     * 设备逻辑删除
     */
    @TableField("delete_flag")
    private Integer deleteFlag;
    
    /**
     * 数据创建时间
     */
    @TableField("data_create_time")
    private LocalDateTime dataCreateTime;
    
    /**
     * 数据更新时间
     */
    @TableField("data_update_time")
    private LocalDateTime dataUpdateTime;
    
}